package com.example.luozizhao.eprxdemo.base.view;

import android.app.Activity;

/**
 * Created by luozizhao on 2018/5/16.
 */

public interface BaseView {

    /**
     * Use night mode 夜间模式
     *
     * @param isNightMode if is night mode
     */
    void useNightMode(boolean isNightMode);

    /**
     * Show error message
     *
     * @param errorMsg error message
     */
    void showErrorMsg(String errorMsg);



    void showSnackErrorMsg(Activity activity, String errorMsg);


    /**
     * Show error
     */
    void showError();

    /**
     * Show loading
     */
    void showLoading();

    /**
     * Reload
     */
    void reload();

    /**
     * Show login view
     */
    void showLoginView();

    /**
     * Show logout view
     */
    void showLogoutView();

    /**
     * Show connect fail
     */
    void showConnectFail();

    /**
     * Show cancel Connect fail
     */
    void showCancelConnectFail();

    /**
     * Show Connect success
     */
    void showConnectSuccess();

}
